package net.huashitong.service.money;

import net.huashitong.mapper.money.SsMoneyVipRecordMapper;
import net.huashitong.ssydt.money.entity.SsMoneyVipRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.08.16
 */
@Service
@Transactional
public class SsMoneyVipRecordServiceImpl implements SsMoneyVipRecordService {

    private SsMoneyVipRecordMapper mapper;

    @Autowired
    public SsMoneyVipRecordServiceImpl(SsMoneyVipRecordMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public SsMoneyVipRecord getGmtEndDescByUserId(String userId) {
        return mapper.getGmtEndDescByUserId(userId);
    }

    @Override
    public void save(SsMoneyVipRecord ssMoneyVipRecord) {
        mapper.insert(ssMoneyVipRecord);
    }


}
